From: Richard M. Stallman Date: Sat, 28 Apr 2007 15:37:58 +0000 (+0000) Subject: (sh-mode): Recognize .profile as sh style. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~534^2~5^2~269 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=21e120061b8c0da3f2930724bf2ca5efd04aaf03;p=emacs.git (sh-mode): Recognize .profile as sh style. --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 2db30ceb4b2..60fc4c43e7b 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1530,6 +1530,8 @@ with your script for an edit-interpret-debug cycle." "ksh") ((string-match "[.]csh\\>" buffer-file-name) "csh") + ((equal (file-name-nondirectory buffer-file-name) ".profile") + "sh") (t sh-shell-file)) nil nil)